package entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by liuxiaobin on 2016/10/12.
 * 主页
 */
public class HomeZhuYe {

    /**
     * code : 1
     * bannerModels : {"textModels":[{"text":"深圳大学第二十届学生代表大会顺利召开 ","order":1,"pic":""},{"text":"喜讯：我校学子荣获第十九届\u201c外研社杯\u201d","order":2,"pic":""},{"text":"中英美暑期哲学学院第20期高级研讨班在我校举办","order":3,"pic":""},{"text":"深圳大学2016年本科招生录取工作结束","order":4,"pic":""},{"text":"我校首届优秀中学生夏令营活动圆满结营","order":5,"pic":""}],"picModels":[{"order":1,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160812093144.png","url":"www.baidu.com"},{"order":4,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160812093209.png","url":"www.baidu.com"},{"order":3,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160812093209.png","url":"www.baidu.com"},{"order":2,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160812093209.png","url":"www.baidu.com"}]}
     * featureModels : [{"text":"校园公文通","order":1,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon1.png","url":"www.szu.edu.cn/2014/campus/"},{"text":"网上排课","order":2,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon2.png","url":"www.lib.szu.edu.cn/?action-liyuants-sub-series"},{"text":"排课查询","order":3,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon11.png","url":"cce.szu.edu.cn/"},{"text":"网上排课","order":11,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon2.png","url":"www.lib.szu.edu.cn/?action-liyuants-sub-series"},{"text":"网上排课","order":10,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon2.png","url":"www.lib.szu.edu.cn/?action-liyuants-sub-series"},{"text":"网上排课","order":9,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon2.png","url":"www.lib.szu.edu.cn/?action-liyuants-sub-series"},{"text":"网上排课","order":8,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon2.png","url":"www.lib.szu.edu.cn/?action-liyuants-sub-series"},{"text":"网上排课","order":7,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon2.png","url":"www.lib.szu.edu.cn/?action-liyuants-sub-series"},{"text":"网上排课","order":6,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon2.png","url":"www.lib.szu.edu.cn/?action-liyuants-sub-series"},{"text":"网上排课","order":5,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon2.png","url":"www.lib.szu.edu.cn/?action-liyuants-sub-series"},{"text":"网上排课","order":4,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon2.png","url":"www.lib.szu.edu.cn/?action-liyuants-sub-series"}]
     * hotSiteModels : [{"text":"商家推荐","order":1,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"创业交流","order":2,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811203257.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=127"},{"text":"最新活动","order":3,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811203337.png","url":"www.szu.edu.cn/2014/campus/3619.html"},{"text":"学习交流","order":4,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811203404.png","url":"www.lib.szu.edu.cn/?action-liyuants-sub-series"},{"text":"论坛公告","order":5,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811203427.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=132"},{"text":"鹊桥征友","order":6,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811203619.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=114"},{"text":"代购专区","order":7,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811203656.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=123"},{"text":"牛郎网络","order":8,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon10.png","url":"123.207.119.229:8080/NlDemo/jsp/home.jsp"},{"text":"求职面经","order":9,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811203752.png","url":"job.szu.edu.cn/"},{"text":"商家推荐","order":10,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":21,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":20,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":19,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":18,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":17,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":16,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":15,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":14,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":13,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":12,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"},{"text":"商家推荐","order":11,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png","url":"nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119"}]
     * adModels : [{"order":1,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon123213.png","type":""},{"order":2,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon5454.png","type":""},{"order":4,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon5454.png","type":""},{"order":3,"pic":"http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon5454.png","type":""}]
     */

    private int code;
    private BannerModelsBean bannerModels;

    /**
     * text : 校园公文通
     * order : 1
     * pic : http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon1.png
     * url : www.szu.edu.cn/2014/campus/
     */

    private List<FeatureModelsBean> featureModels;
    /**
     * text : 商家推荐
     * order : 1
     * pic : http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160811202724.png
     * url : nbbs.szu.edu.cn/d/forum.php?mod=forumdisplay&fid=119
     */

    private List<HotSiteModelsBean> hotSiteModels;
    /**
     * order : 1
     * pic : http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon123213.png
     * type :
     */

    private List<AdModelsBean> adModels;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public BannerModelsBean getBannerModels() {
        return bannerModels;
    }

    public void setBannerModels(BannerModelsBean bannerModels) {
        this.bannerModels = bannerModels;
    }

    public List<FeatureModelsBean> getFeatureModels() {
        return featureModels;
    }

    public void setFeatureModels(List<FeatureModelsBean> featureModels) {
        this.featureModels = featureModels;
    }

    public List<HotSiteModelsBean> getHotSiteModels() {
        return hotSiteModels;
    }

    public void setHotSiteModels(List<HotSiteModelsBean> hotSiteModels) {
        this.hotSiteModels = hotSiteModels;
    }

    public List<AdModelsBean> getAdModels() {
        return adModels;
    }

    public void setAdModels(List<AdModelsBean> adModels) {
        this.adModels = adModels;
    }

    public static class BannerModelsBean {
        /**
         * text : 深圳大学第二十届学生代表大会顺利召开
         * order : 1
         * pic :
         */

        private List<TextModelsBean> textModels;

        /**
         * order : 1
         * pic : http://172.50.3.10:8080/wifiFILE/icon/TobBorIcon160812093144.png
         * url : www.baidu.com
         */
        private List<PicModelsBean> picModels;

        public List<TextModelsBean> getTextModels() {
            return textModels;
        }

        public void setTextModels(List<TextModelsBean> textModels) {
            this.textModels = textModels;
        }

        public List<PicModelsBean> getPicModels() {
            return picModels;
        }

        public void setPicModels(List<PicModelsBean> picModels) {
            this.picModels = picModels;
        }

        public static class TextModelsBean implements Parcelable{
            private String text;
            private int order;
            private String pic;

            protected TextModelsBean(Parcel in) {
                text = in.readString();
                order = in.readInt();
                pic = in.readString();
            }

            public static final Creator<TextModelsBean> CREATOR = new Creator<TextModelsBean>() {
                @Override
                public TextModelsBean createFromParcel(Parcel in) {
                    return new TextModelsBean(in);
                }

                @Override
                public TextModelsBean[] newArray(int size) {
                    return new TextModelsBean[size];
                }
            };

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public int getOrder() {
                return order;
            }

            public void setOrder(int order) {
                this.order = order;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(text);
                dest.writeInt(order);
                dest.writeString(pic);
            }
        }

        public static class PicModelsBean implements Parcelable{
            private int order;
            private String pic;
            private String url;
            private String text;



            protected PicModelsBean(Parcel in) {
                order = in.readInt();
                pic = in.readString();
                url = in.readString();
                text = in.readString();
            }

            public static final Creator<PicModelsBean> CREATOR = new Creator<PicModelsBean>() {
                @Override
                public PicModelsBean createFromParcel(Parcel in) {
                    return new PicModelsBean(in);
                }

                @Override
                public PicModelsBean[] newArray(int size) {
                    return new PicModelsBean[size];
                }
            };

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public int getOrder() {
                return order;
            }

            public void setOrder(int order) {
                this.order = order;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(order);
                dest.writeString(pic);
                dest.writeString(url);
                dest.writeString(text);
            }
        }
    }

    public static class FeatureModelsBean {
        private String text;
        private int order;
        private String pic;
        private String url;
        private String type;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public int getOrder() {
            return order;
        }

        public void setOrder(int order) {
            this.order = order;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }

    public static class HotSiteModelsBean {
        private String text;
        private int order;
        private String pic;
        private String url;

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public int getOrder() {
            return order;
        }

        public void setOrder(int order) {
            this.order = order;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }

    public static class AdModelsBean {
        private int order;
        private String pic;
        private String type;
        private String url;
        private String text;

        public int getOrder() {
            return order;
        }

        public void setOrder(int order) {
            this.order = order;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getUrl() {
            return url;
        }

        public String getText() {
            return text;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public void setText(String text) {
            this.text = text;
        }
    }
}
